/***
 * 楼栋管理Api
 */
import request from "@/utils/request";

let village = '/service-village'

/**
 * 条件查询楼栋信息
 * @param query
 * @returns {AxiosPromise}
 */
export function finFloorList(query){
  return request({
    url:village + '/village/floor/queryFloor',
    method:'get',
    params:query
  })
}

/**
 * 修改楼栋接口
 * @param floor
 * @returns {AxiosPromise}
 */
export function updateFloor(floor){
  return request({
    url: village +'/village/floor/updateFloor',
    method:'post',
    data:floor
  })
}

/**
 * 删除楼栋信息
 * @param id
 * @returns {AxiosPromise}
 */
export function removeFloor(id){
  return request({
    url: village + "/village/floor/deleteFloor/"+id,
    method: 'get'
  })
}

/**
 * 新增楼栋信息
 * @param floor
 * @returns {AxiosPromise}
 */
export function addFloorC(floor){
  return request({
    url: village + '/village/floor/addFloor',
    method: 'post',
    data: floor
  })
}

